<template>
  <el-card>
    <template #header>商品编辑</template>

    <div>
      123
    </div>
  </el-card>
</template>

<script>
import { getGoodsForId } from '@/api/goods.js'

export default {
  created() {
    console.log(this.$route)
    this.getGoodsItem()
  },
  methods: {
    async getGoodsItem() {
      const { data } = await getGoodsForId({
        id: this.$route.params.id
      })
      console.log(data)
    }
  }
}
</script>

<style lang="less" scoped></style>
